package exe;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetMax2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = 0;
        System.out.println("请输入10个数：");
        int max = in.nextInt();
        a++;
        while (a < 10) {
            int c = in.nextInt();
            a++;
            if (c > max) {
                max = c;
            }
        }
        System.out.println("最大的数" + max);
    }
}